package com.kla.power.controller;

import com.kla.power.entity.InverterDcAmountEntity;
import com.kla.power.service.IInverterDcAmountService;
import com.kla.power.util.ResultBody;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 直流电 前端控制器
 * </p>
 *
 * @author WuZH
 * @since 2024-06-10
 */
@RestController
@RequestMapping ( "/dcAmount" )
@CrossOrigin (value = "*", maxAge = 3600)
public class InverterDcAmountController {

    @Resource
    private IInverterDcAmountService iInverterDcAmountService;

    @RequestMapping ( "queryList" )
    public ResultBody queryList ( @RequestBody InverterDcAmountEntity inverterDcAmountEntity ) {
        List<InverterDcAmountEntity> inverterDcAmountEntities = iInverterDcAmountService.queryList ( inverterDcAmountEntity );
        return ResultBody.success ( inverterDcAmountEntities );
    }

}
